#include<stdio.h>
#include<math.h>
int main()
{
	int a, b, c, x, d;
	double x1, x2;
	scanf_s("%d,%d,%d", &a, &b, &c);
	d = b*b - 4 * a*c;
	if (d >= 0)
	{
		x1 = (-b + sqrt(d)) / (2 * a);
		x2 = (-b - sqrt(d)) / (2 * a);
		printf("x1=%.4f,x2=%.4f\n", x1, x2);
	}
	else{
		printf("error!");
	}
}